<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>LuaApp项目接口文档</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>LuaApp</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Methods">Methods</a></li>
</ul>


<h2>Classes</h2>
<ul class="nowrap">
  <li><a href="../classes/ActivityIndicatorView.html">ActivityIndicatorView</a></li>
  <li><a href="../classes/AlertView.html">AlertView</a></li>
  <li><a href="../classes/Application.html">Application</a></li>
  <li><a href="../classes/AudioEngine.html">AudioEngine</a></li>
  <li><a href="../classes/Button.html">Button</a></li>
  <li><a href="../classes/CaptureView.html">CaptureView</a></li>
  <li><a href="../classes/CheckBox.html">CheckBox</a></li>
  <li><a href="../classes/ClippingView.html">ClippingView</a></li>
  <li><a href="../classes/Control.html">Control</a></li>
  <li><a href="../classes/DatePickerView.html">DatePickerView</a></li>
  <li><a href="../classes/Device.html">Device</a></li>
  <li><a href="../classes/DownloadManager.html">DownloadManager</a></li>
  <li><a href="../classes/DrawView.html">DrawView</a></li>
  <li><a href="../classes/DrawerController.html">DrawerController</a></li>
  <li><a href="../classes/FileUtils.html">FileUtils</a></li>
  <li><a href="../classes/GifView.html">GifView</a></li>
  <li><a href="../classes/HttpClient.html">HttpClient</a></li>
  <li><a href="../classes/HttpRequest.html">HttpRequest</a></li>
  <li><a href="../classes/Image.html">Image</a></li>
  <li><a href="../classes/ImageView.html">ImageView</a></li>
  <li><a href="../classes/Label.html">Label</a></li>
  <li><a href="../classes/LinearView.html">LinearView</a></li>
  <li><a href="../classes/ListView.html">ListView</a></li>
  <li><a href="../classes/ListViewCell.html">ListViewCell</a></li>
  <li><a href="../classes/NavController.html">NavController</a></li>
  <li><a href="../classes/Progress.html">Progress</a></li>
  <li><a href="../classes/Slider.html">Slider</a></li>
  <li><a href="../classes/Stepper.html">Stepper</a></li>
  <li><a href="../classes/Switch.html">Switch</a></li>
  <li><strong>TabBarController</strong></li>
  <li><a href="../classes/TextField.html">TextField</a></li>
  <li><a href="../classes/TextView.html">TextView</a></li>
  <li><a href="../classes/UILoader.html">UILoader</a></li>
  <li><a href="../classes/View.html">View</a></li>
  <li><a href="../classes/ViewController.html">ViewController</a></li>
  <li><a href="../classes/WebView.html">WebView</a></li>
  <li><a href="../classes/Window.html">Window</a></li>
</ul>
<h2>Modules</h2>
<ul class="nowrap">
  <li><a href="../modules/Animation.html">Animation</a></li>
  <li><a href="../modules/class.html">class</a></li>
  <li><a href="../modules/constants.html">constants</a></li>
  <li><a href="../modules/crossapp.html">crossapp</a></li>
  <li><a href="../modules/cjson.html">cjson</a></li>
  <li><a href="../modules/mobdebug.html">mobdebug</a></li>
</ul>
<h2>Topics</h2>
<ul class="">
  <li><a href="../topics/readme.md.html">readme</a></li>
  <li><a href="../topics/layout.md.html">layout</a></li>
</ul>

</div>

<div id="content">

<h1>Class <code>TabBarController</code></h1>
<p>切换控制器，继承自ViewController</p>
<p>

</p>
    <h3>See also:</h3>
    <ul>
         <a href="../classes/ViewController.html#">ViewController</a>
    </ul>


<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#TabBarController:new">TabBarController:new (table, CABarVerticalAlignment)</a></td>
	<td class="summary">创建对象</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:showSelectedViewController">TabBarController:showSelectedViewController (controller)</a></td>
	<td class="summary">设置显示哪个控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:getViewControllerAtIndex">TabBarController:getViewControllerAtIndex (index)</a></td>
	<td class="summary">根据索引获取控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:getSelectedViewController">TabBarController:getSelectedViewController ()</a></td>
	<td class="summary">获取选择的那个控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:showSelectedViewControllerAtIndex">TabBarController:showSelectedViewControllerAtIndex (index)</a></td>
	<td class="summary">根据索引设置显示哪个控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:setTabBarHidden">TabBarController:setTabBarHidden (isHidden)</a></td>
	<td class="summary">设置是否隐藏切换条</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:isTabBarHidden">TabBarController:isTabBarHidden ()</a></td>
	<td class="summary">是否隐藏切换条</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:getTabBarVerticalAlignment">TabBarController:getTabBarVerticalAlignment ()</a></td>
	<td class="summary">获取切换条垂直对齐方式</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:setTabBarBackgroundImage">TabBarController:setTabBarBackgroundImage (image)</a></td>
	<td class="summary">设置切换条背景图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:getTabBarBackgroundImage">TabBarController:getTabBarBackgroundImage ()</a></td>
	<td class="summary">获取切换条背景图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:setTabBarBackgroundColor">TabBarController:setTabBarBackgroundColor (color)</a></td>
	<td class="summary">设置切换条背景颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:getTabBarBackgroundColor">TabBarController:getTabBarBackgroundColor ()</a></td>
	<td class="summary">获取切换条背景颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:setTabBarSelectedBackgroundImage">TabBarController:setTabBarSelectedBackgroundImage (image)</a></td>
	<td class="summary">设置切换条选择状态背景图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:getTabBarSelectedBackgroundImage">TabBarController:getTabBarSelectedBackgroundImage ()</a></td>
	<td class="summary">获取切换条选择状态背景图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:setTabBarSelectedBackgroundColor">TabBarController:setTabBarSelectedBackgroundColor (color)</a></td>
	<td class="summary">设置切换条选择状态背景颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:getTabBarSelectedBackgroundColor">TabBarController:getTabBarSelectedBackgroundColor ()</a></td>
	<td class="summary">获取切换条选择状态背景颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:setTabBarSelectedIndicatorImage">TabBarController:setTabBarSelectedIndicatorImage (image)</a></td>
	<td class="summary">设置切换条选择状态指示器图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:getTabBarSelectedIndicatorImage">TabBarController:getTabBarSelectedIndicatorImage ()</a></td>
	<td class="summary">获取切换条选择状态指示器图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:setTabBarSelectedIndicatorColor">TabBarController:setTabBarSelectedIndicatorColor (color)</a></td>
	<td class="summary">设置切换条选择状态指示器颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:getTabBarSelectedIndicatorColor">TabBarController:getTabBarSelectedIndicatorColor ()</a></td>
	<td class="summary">获取切换条选择状态指示器颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:setTabBarTitleColorForNormal">TabBarController:setTabBarTitleColorForNormal (color)</a></td>
	<td class="summary">设置切换条标题颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:getTabBarTitleColorForNormal">TabBarController:getTabBarTitleColorForNormal ()</a></td>
	<td class="summary">获取切换条标题颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:setTabBarTitleColorForSelected">TabBarController:setTabBarTitleColorForSelected (color)</a></td>
	<td class="summary">设置切换条选择状态标题颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:getTabBarTitleColorForSelected">TabBarController:getTabBarTitleColorForSelected ()</a></td>
	<td class="summary">获取切换条选择状态标题颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:updateItem">TabBarController:updateItem (controller)</a></td>
	<td class="summary">更新视图控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:showTabBarSelectedIndicator">TabBarController:showTabBarSelectedIndicator ()</a></td>
	<td class="summary">显示选中的指示器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:setTabBarHeight">TabBarController:setTabBarHeight (height)</a></td>
	<td class="summary">设置切换条的高度</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:setTabBarShowShadow">TabBarController:setTabBarShowShadow (isShow)</a></td>
	<td class="summary">设置是否显示切换条阴影</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TabBarController:getTabBarShowShadow">TabBarController:getTabBarShowShadow ()</a></td>
	<td class="summary">是否显示切换条阴影</td>
	</tr>
</table>

<br/>
<br/>


    <h2 class="section-header "><a name="Methods"></a>Methods</h2>

    <dl class="function">
    <dt>
    <a name = "TabBarController:new"></a>
    <strong>TabBarController:new (table, CABarVerticalAlignment)</strong>
    </dt>
    <dd>
    创建对象


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">table</span>
         {controller...}
        </li>
        <li><span class="parameter">CABarVerticalAlignment</span>
            <span class="types"><span class="type">int</span></span>
         0 top,1 bottom
        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/TabBarController.html#">TabBarController</a></span>
        controller
    </ol>




</dd>
    <dt>
    <a name = "TabBarController:showSelectedViewController"></a>
    <strong>TabBarController:showSelectedViewController (controller)</strong>
    </dt>
    <dd>
    设置显示哪个控制器


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">controller</span>
            <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:getViewControllerAtIndex"></a>
    <strong>TabBarController:getViewControllerAtIndex (index)</strong>
    </dt>
    <dd>
    根据索引获取控制器


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">index</span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>
        controller
    </ol>




</dd>
    <dt>
    <a name = "TabBarController:getSelectedViewController"></a>
    <strong>TabBarController:getSelectedViewController ()</strong>
    </dt>
    <dd>
    获取选择的那个控制器



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>
        controller
    </ol>




</dd>
    <dt>
    <a name = "TabBarController:showSelectedViewControllerAtIndex"></a>
    <strong>TabBarController:showSelectedViewControllerAtIndex (index)</strong>
    </dt>
    <dd>
    根据索引设置显示哪个控制器


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">index</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:setTabBarHidden"></a>
    <strong>TabBarController:setTabBarHidden (isHidden)</strong>
    </dt>
    <dd>
    设置是否隐藏切换条


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">isHidden</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:isTabBarHidden"></a>
    <strong>TabBarController:isTabBarHidden ()</strong>
    </dt>
    <dd>
    是否隐藏切换条



    <h3>Returns:</h3>
    <ol>

        isHidden
    </ol>




</dd>
    <dt>
    <a name = "TabBarController:getTabBarVerticalAlignment"></a>
    <strong>TabBarController:getTabBarVerticalAlignment ()</strong>
    </dt>
    <dd>
    获取切换条垂直对齐方式



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        CABarVerticalAlignment 0 顶部 1 底部
    </ol>




</dd>
    <dt>
    <a name = "TabBarController:setTabBarBackgroundImage"></a>
    <strong>TabBarController:setTabBarBackgroundImage (image)</strong>
    </dt>
    <dd>
    设置切换条背景图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">image</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:getTabBarBackgroundImage"></a>
    <strong>TabBarController:getTabBarBackgroundImage ()</strong>
    </dt>
    <dd>
    获取切换条背景图



    <h3>Returns:</h3>
    <ol>

        image
    </ol>




</dd>
    <dt>
    <a name = "TabBarController:setTabBarBackgroundColor"></a>
    <strong>TabBarController:setTabBarBackgroundColor (color)</strong>
    </dt>
    <dd>
    设置切换条背景颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:getTabBarBackgroundColor"></a>
    <strong>TabBarController:getTabBarBackgroundColor ()</strong>
    </dt>
    <dd>
    获取切换条背景颜色



    <h3>Returns:</h3>
    <ol>

        color
    </ol>




</dd>
    <dt>
    <a name = "TabBarController:setTabBarSelectedBackgroundImage"></a>
    <strong>TabBarController:setTabBarSelectedBackgroundImage (image)</strong>
    </dt>
    <dd>
    设置切换条选择状态背景图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">image</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:getTabBarSelectedBackgroundImage"></a>
    <strong>TabBarController:getTabBarSelectedBackgroundImage ()</strong>
    </dt>
    <dd>
    获取切换条选择状态背景图



    <h3>Returns:</h3>
    <ol>

        image
    </ol>




</dd>
    <dt>
    <a name = "TabBarController:setTabBarSelectedBackgroundColor"></a>
    <strong>TabBarController:setTabBarSelectedBackgroundColor (color)</strong>
    </dt>
    <dd>
    设置切换条选择状态背景颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:getTabBarSelectedBackgroundColor"></a>
    <strong>TabBarController:getTabBarSelectedBackgroundColor ()</strong>
    </dt>
    <dd>
    获取切换条选择状态背景颜色



    <h3>Returns:</h3>
    <ol>

        color
    </ol>




</dd>
    <dt>
    <a name = "TabBarController:setTabBarSelectedIndicatorImage"></a>
    <strong>TabBarController:setTabBarSelectedIndicatorImage (image)</strong>
    </dt>
    <dd>
    设置切换条选择状态指示器图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">image</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:getTabBarSelectedIndicatorImage"></a>
    <strong>TabBarController:getTabBarSelectedIndicatorImage ()</strong>
    </dt>
    <dd>
    获取切换条选择状态指示器图



    <h3>Returns:</h3>
    <ol>

        image
    </ol>




</dd>
    <dt>
    <a name = "TabBarController:setTabBarSelectedIndicatorColor"></a>
    <strong>TabBarController:setTabBarSelectedIndicatorColor (color)</strong>
    </dt>
    <dd>
    设置切换条选择状态指示器颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:getTabBarSelectedIndicatorColor"></a>
    <strong>TabBarController:getTabBarSelectedIndicatorColor ()</strong>
    </dt>
    <dd>
    获取切换条选择状态指示器颜色



    <h3>Returns:</h3>
    <ol>

        color
    </ol>




</dd>
    <dt>
    <a name = "TabBarController:setTabBarTitleColorForNormal"></a>
    <strong>TabBarController:setTabBarTitleColorForNormal (color)</strong>
    </dt>
    <dd>
    设置切换条标题颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:getTabBarTitleColorForNormal"></a>
    <strong>TabBarController:getTabBarTitleColorForNormal ()</strong>
    </dt>
    <dd>
    获取切换条标题颜色



    <h3>Returns:</h3>
    <ol>

        color
    </ol>




</dd>
    <dt>
    <a name = "TabBarController:setTabBarTitleColorForSelected"></a>
    <strong>TabBarController:setTabBarTitleColorForSelected (color)</strong>
    </dt>
    <dd>
    设置切换条选择状态标题颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:getTabBarTitleColorForSelected"></a>
    <strong>TabBarController:getTabBarTitleColorForSelected ()</strong>
    </dt>
    <dd>
    获取切换条选择状态标题颜色



    <h3>Returns:</h3>
    <ol>

        color
    </ol>




</dd>
    <dt>
    <a name = "TabBarController:updateItem"></a>
    <strong>TabBarController:updateItem (controller)</strong>
    </dt>
    <dd>
    更新视图控制器


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">controller</span>
            <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:showTabBarSelectedIndicator"></a>
    <strong>TabBarController:showTabBarSelectedIndicator ()</strong>
    </dt>
    <dd>
    显示选中的指示器







</dd>
    <dt>
    <a name = "TabBarController:setTabBarHeight"></a>
    <strong>TabBarController:setTabBarHeight (height)</strong>
    </dt>
    <dd>
    设置切换条的高度


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">height</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:setTabBarShowShadow"></a>
    <strong>TabBarController:setTabBarShowShadow (isShow)</strong>
    </dt>
    <dd>
    设置是否显示切换条阴影


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">isShow</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TabBarController:getTabBarShowShadow"></a>
    <strong>TabBarController:getTabBarShowShadow ()</strong>
    </dt>
    <dd>
    是否显示切换条阴影



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        isShow
    </ol>




</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-04-25 21:28:27 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
